home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / cuj1008.zip / 1008131A < prev    next >
Text File  |  1992-06-09  |  839b  |  30 lines

  1.  
  2.    void main(int argc, char *argv[])
  3.        {
  4.        int count;
  5.        int trace, debug, some_count;
  6.        printf("\n This program was executed as %s \n", argv[0]);
  7.  
  8.        for (count = 1; count < argc; count++)
  9.            {
  10.            if (argv[count][0] == '-' || argv[count][0] == '/')
  11.                {
  12.                switch(argv[count][1])
  13.                    {
  14.                case 'd':
  15.                    debug = TRUE;             
  16.                    break;
  17.                case 't':
  18.                    trace = TRUE;
  19.                    break;
  20.                case 'n':
  21.                    sscanf(&argv[count][2],"%d",&some_count);
  22.                    /* Tests for any other character options */
  23.                    }
  24.                }
  25.            else
  26.                strcpy(filename,argv[count]);
  27.            }
  28.        }                   
  29.  
  30.